include "scene.thrift"
include "diary.thrift"
include "product.thrift"
include "comment.thrift"
include "message.thrift"
include "behavior.thrift"
include "user.thrift"
include "message.thrift"
include "stconfigs.thrift"
include "advanced.thrift"
include "module.thrift"

namespace java com.to8to.thrift.diary.service
namespace php com.to8to.thrift.diary.service

service SceneDiaryService
{
//========== 基础接口 =======================================================================================
///////现场
    scene.ListScenesResponse ListScenes(1:scene.ListScenesRequest req)     	//查看现场
	scene.ListScenesResponse ListSceneRaw(1:scene.ListSceneRawRequest req)  //用json查询现场
    module.CreateResponse CreateScene(1:scene.CreateSceneRequest req)  		//创建现场
    module.UpdateResponse UpdateScene(1:scene.UpdateSceneRequest req)  		//更新现场
	module.UpdateResponse UpdateRawScene(1:scene.UpdateSceneRawRequest req) //用json更新现场
    module.DeleteResponse DeleteScene(1:scene.DeleteSceneRequest req)  		//删除现场
	
	/**
     * 装修公司查询接口
     */
	scene.ListCompaniesResponse ListCompanies(1:scene.ListCompaniesRequest req)			
	
    /**
	 * 小区查询接口
     */
    scene.ListCommunityResponse ListCommunity(1:scene.ListCommunityRequest req) 
/////日记
    diary.ListDiariesResponse ListDiaries(1:diary.ListDiariesRequest req)  //查看日记
    module.CreateResponse CreateDiary(1:diary.CreateDiaryRequest req)  //创建日记
    module.UpdateResponse UpdateDiary(1:diary.UpdateDiaryRequest req)  //更新日记
    module.DeleteResponse DeleteDiary(1:diary.DeleteDiaryRequest req)  //删除日记
/////清单	
    product.ListProductResponse ListProduct(1:product.ListProductRequest req) 	      //列出商品
    module.CreateResponse CreateProduct(1:product.CreateProductRequest req)   //创建商品
    module.UpdateResponse UpdateProduct(1:product.UpdateProductRequest req)   //更新商品
    module.DeleteResponse DeleteProduct(1:product.DeleteProductRequest req)   //删除商品
    
////评论
    comment.ListCommentsResponse ListComments(1:comment.ListCommentsRequest req)  //查看评论
    module.CreateResponse CreateComment(1:comment.CreateCommentRequest req) //创建评论
    module.DeleteResponse DeleteComment(1:comment.DeleteCommentRequest req) //删除评论
    
////用户行为:收藏、点赞、浏览都在这里(因为这里接下来变化可能性较大，所以把口留宽点)
    behavior.BehaveResponse Behave(1:behavior.BehaveRequest req) 
    behavior.ListBehaviorResponse ListBehavior(1:behavior.ListBehaviorRequest req)
	
/////消息
    message.ListMessagesResponse ListMessages(1:message.ListMessagesRequest req)    //查看消息
    message.UpdateMessageResponse UpdateMessage(1:message.UpdateMessageRequest req)  //更新消息状态
	
/////人
    user.ListUsersResponse ListUsers(1:user.ListUsersRequest req)
	module.UpdateResponse UpdateUser(1:user.UpdateUserRequest req)
	
/////根据字段获取对应配置ID	
	stconfigs.GetStConfigSubIdMapResponse GetStConfigSubIdMap(1:stconfigs.GetStConfigSubIdMapRequest req)
	stconfigs.GetAllStConfigIdMapResponse GetAllStConfigIdMap(1:stconfigs.GetAllStConfigIdMapRequest req)
	stconfigs.GetStOrderListResponse GetStOrderList(1:stconfigs.GetStOrderListRequest req)
	
//========== 高级接口 =======================================================================================
	advanced.ListJingXuanSceneResponse ListJingXuanScene(1:advanced.ListJingXuanSceneRequest req)		//显示精选现场
	advanced.ListNewestSceneResponse ListNewestScene(1:advanced.ListNewestSceneRequest req)	       		//置顶，分页问题得后台支持一下
   	advanced.ListSceneDetailResponse ListSceneDetail(1:advanced.ListSceneDetailRequest req)				//日记详情,强哥用
	
	advanced.RecommendSceneResponse RecommendScene(1:advanced.RecommendSceneRequest req)				//相关推荐
	advanced.VerifyResponse verify(1:advanced.VerifyRequest req)										//验证资源
	advanced.ListAllCategoryStatResponse ListAllCategoryStat(1:advanced.ListAllCategoryStatRequest req)     //查询所有标签的日记统计
	
    module.CreateResponse AddDiaryProduct(1:advanced.AddDiaryProductRequest req)                        // 增加日记和商品的关联关系
    module.DeleteResponse RemoveDiaryProduct(1:advanced.RemoveDiaryProductRequest req)                  // 移除日记和商品的关联关系

    advanced.ListSceneDiaryViewsResponse ListSceneDiaryViews(1:advanced.ListSceneDiaryViewsRequest  req)

    advanced.JudgeProductUsedResponse JudgeProductUsed(1:advanced.JudgeProductUsedRequest req)
	
	advanced.ListProgressImagesResponse ListProgressImages(1:advanced.ListProgressImagesRequest req)		//按阶段列出现场图集

    advanced.ListStatisticResponse ListStatistic(1:advanced.ListStatisticRequest req)                       // 查询统计信息
    
    advanced.ListCompanyAllScenesResponse ListCompanyAllScenes(1:advanced.ListCompanyAllScenesRequest req) //轮单查现场信息
	
	advanced.ListCompanyTopDiaryResponse ListCompanyTopDiary(1:advanced.ListCompanyTopDiaryRequest req)    //获取公司置顶日记
}